#ifndef FRAMEOP_H
#define FRAMEOP_H

#include <iostream>
#include <math.h>
#include "cv.h"
#include "highgui.h"
#include "frameop.h"
#include "constants.h"

class frameOp {
private:
	long int fIndex;
	
public:
	IplImage * bFrame;

	frameOp();
	~frameOp();
	int init(CvSize size);
	int updateBackground(IplImage * cFrame);
	int subtractFrame(IplImage * cFrame);
	int thresholdFrame(IplImage * cFrame, int threshold);
	int srcFrame(IplImage * frame);
};

#endif // FRAMEOP_H
